<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = '充值审核';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="page-title">
  <div>
    <h1><i class="fa fa-cny"></i>充值审核</h1>
    <p style="font-style:normal;">核对充值信息</p>
  </div>
</div>

<!-- page body start-->
<div class="card">
  <div class="jumbotron">
    <div class='container'>
      <h2>推荐码：<?=Html::encode($model['push_tjm'])?></h2>
      <h4>生成日期：<?=Html::encode($model['create_time'])?></h4>
      <p>使用该推荐码成功注册的会员将成为由你推荐的一级会员。该推荐码只能单人使用一次，7日内有效。</p>
      <p><a id='copy-button' class="btn btn-warning btn-lg" role="button" style='cursor:pointer;'  data-clipboard-text="<?=$model['push_tjm']?>" >将推荐码拷贝到剪贴板</a></p>
    </div>
  </div>
</div>


<div class='card'>
<?php
//如果审核通过
 ?>
<?php $form = ActiveForm::begin(); ?>
  <table class="table table-bordered">
  <tr>
    <th>#</th><th>支付宝账户名</th><th>会员真实姓名</th><th>充值金额</th>
  </tr>
  <tr>
    <td>1</td>
    <td><?= Html::encode($model->alipay_user) ?></td>
    <td><?= Html::encode($model->member_real_name) ?></td>
    <td><span class='alert-danger'><i class="fa fa-cny"></i> 1000.00</span><!--?= Html::encode($model->money) ?--></td>
  </tr>
  </table>
<button type="submit" class="btn btn-warning">确认充值</button>
</div>
<?php ActiveForm::end(); ?>
<?php
//}
//如果审核未通过
//else{
 ?>
 <div class='well well-lg'>
   充值申请已提交审核，最迟3个工作日有结果，请耐心等待...
 </div>
 <?php
 //}
  ?>
</div>
<!-- page body end-->
